﻿<wnd:VecDrawDialog x:Class="WickedFlame.VecDraw.Dialog.ImageDragDropDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:wnd="clr-namespace:WickedFlame.VecDraw.Base.Controls;assembly=VecDraw.Base"
    Title="Drag Drop" SizeToContent="Height" Width="300" Foreground="WhiteSmoke">

    <Window.Resources>

        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Resources/ControlTemplates.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>

    </Window.Resources>

    <Grid>
        <Grid.Resources>
            <Image Source="/VecDraw.Resources;component/Images/VecDraw.Icon.Open.png" x:Key="imageOpen"/>
            <Image Source="/VecDraw.Resources;component/Images/VecDraw.Icon.AddToLayer.png" x:Key="imageAddToLayer"/>
            <Image Source="/VecDraw.Resources;component/Images/VecDraw.Icon.CloseGray.png" x:Key="imageClose"/>
        </Grid.Resources>
        <Grid.Background>
            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                <GradientStop Offset="0.0" Color="#484848" />
                <GradientStop Offset="1.0" Color="#282828" />
            </LinearGradientBrush>
        </Grid.Background>
        
        <Grid Margin="5">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
            </Grid.RowDefinitions>

            <TextBlock Text="What would you like to do with the inserted image?" TextWrapping="Wrap" Margin="5,5,5,10"/>
            <Separator Grid.Row="1" Margin="0,0,0,10"/>
            <wnd:ImageTextButton Grid.Row="2" IsDefault="True" Icon="{StaticResource imageOpen}" Title="New Image"  ButtonText="Open as a new image" Name="btnOpen" Click="btnOpen_Click" Background="Transparent"/>
            <wnd:ImageTextButton Grid.Row="3" Icon="{StaticResource imageAddToLayer}" Title="Add to layer"  ButtonText="Add the image to the curent canvas" Name="btnAdd" Click="btnAdd_Click" Background="Transparent"/>
            <wnd:ImageTextButton Grid.Row="4" Icon="{StaticResource imageClose}" Title="Cancle" ButtonText="Cancels the drop operation" Name="btnCancle" Click="btnCancle_Click" Background="Transparent"/>
        </Grid>
    </Grid>
</wnd:VecDrawDialog>
